package org.itli.jnsocket.Controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.itli.jnsocket.Result.Result;
import org.itli.jnsocket.Service.OnBindHistoryService;
import org.itli.jnsocket.Util.PageUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Slf4j
@RequestMapping("/OnBindHistory")
@Tag(name = "入库历史记录")
@RestController
public class OnBindHistoryController {

    OnBindHistoryService service;

    @Autowired
    public void setService(OnBindHistoryService service) {
        this.service = service;
    }

    @PostMapping("/CardInfo")
    @Operation(summary = "获取卡片入库记录")
    public Result<String> CardInfo(@RequestBody PageUtil page){
        String s = service.CardInfo(page);
        return Result.success(s);
    }
}
